<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"9850175460002_7240101D084-1_0","x":-55.900002,"y":-87.000000,"z":-556.000000,"width":120.000000,"height":86.000000,"length":80.000000,"weight":151.000000,"platform":"platform45","order":1,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_6","x":-55.900002,"y":-1.000000,"z":-556.000000,"width":120.000000,"height":86.000000,"length":80.000000,"weight":151.000000,"platform":"platform45","order":2,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_5","x":-55.900002,"y":85.000000,"z":-556.000000,"width":120.000000,"height":86.000000,"length":80.000000,"weight":151.000000,"platform":"platform45","order":3,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_4","x":44.099998,"y":-87.000000,"z":-536.000000,"width":80.000000,"height":86.000000,"length":120.000000,"weight":151.000000,"platform":"platform45","order":4,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_3","x":44.099998,"y":-1.000000,"z":-536.000000,"width":80.000000,"height":86.000000,"length":120.000000,"weight":151.000000,"platform":"platform45","order":5,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_2","x":44.099998,"y":85.000000,"z":-536.000000,"width":80.000000,"height":86.000000,"length":120.000000,"weight":151.000000,"platform":"platform45","order":6,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_1","x":-55.900002,"y":-87.000000,"z":-476.000000,"width":120.000000,"height":86.000000,"length":80.000000,"weight":151.000000,"platform":"platform45","order":7,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240101D084-2_0","x":-55.900002,"y":-1.000000,"z":-476.000000,"width":120.000000,"height":86.000000,"length":80.000000,"weight":151.000000,"platform":"platform45","order":8,"material":"","type":1,"place":100},{"boxId":"9850175460002_00I69207027400521780-3_0","x":-55.900002,"y":75.000000,"z":-476.000000,"width":120.000000,"height":66.000000,"length":80.000000,"weight":62.000000,"platform":"platform45","order":9,"material":"","type":1,"place":100},{"boxId":"9850175460002_7240191M402-4_0","x":-86.900002,"y":116.500000,"z":-487.000000,"width":58.000000,"height":17.000000,"length":58.000000,"weight":8.760000,"platform":"platform45","order":10,"material":"","type":1,"place":100},{"boxId":"94267240T002194","x":43.349998,"y":-93.250000,"z":-455.750000,"width":78.500000,"height":73.500000,"length":40.500000,"weight":31.400000,"platform":"platform11","order":11,"material":"","type":1,"place":100},{"boxId":"9835082620001_7240101P799P0400500_0","x":-64.150002,"y":-23.250000,"z":-389.500000,"width":103.500000,"height":213.500000,"length":93.000000,"weight":232.000000,"platform":"platform07","order":12,"material":"","type":1,"place":100},{"boxId":"9835082620001_8180100Y121P0400500_0","x":-36.549999,"y":114.500000,"z":-489.649994,"width":42.700001,"height":13.000000,"length":52.700001,"weight":8.050000,"platform":"platform07","order":13,"material":"","type":1,"place":100},{"boxId":"9836827700001_7240101K834P0400500_0","x":95.349998,"y":-125.250000,"z":-577.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.580000,"platform":"platform07","order":14,"material":"","type":1,"place":100},{"boxId":"9849489330002_4940190M349_0","x":-19.400000,"y":-78.500000,"z":-311.500000,"width":193.000000,"height":103.000000,"length":63.000000,"weight":287.500000,"platform":"platform08","order":15,"material":"","type":1,"place":100},{"boxId":"9849489300001_2460192R515_1","x":-69.150002,"y":0.500000,"z":-311.250000,"width":93.500000,"height":55.000000,"length":63.500000,"weight":66.500000,"platform":"platform08","order":16,"material":"","type":1,"place":100},{"boxId":"9849489300001_2460192R515_0","x":24.350000,"y":0.500000,"z":-311.250000,"width":93.500000,"height":55.000000,"length":63.500000,"weight":66.500000,"platform":"platform08","order":17,"material":"","type":1,"place":100},{"boxId":"9849489330001_00I69207027320754097-3_0","x":-74.400002,"y":102.500000,"z":-403.500000,"width":83.000000,"height":38.000000,"length":65.000000,"weight":28.000000,"platform":"platform08","order":18,"material":"","type":1,"place":100},{"boxId":"9855518760001_7241J014637-1_0","x":99.099998,"y":-126.250000,"z":-544.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":19,"material":"","type":1,"place":100},{"boxId":"9848526360002_25001016878P0400500-1_0","x":-55.900002,"y":-97.750000,"z":-239.500000,"width":120.000000,"height":64.500000,"length":80.000000,"weight":62.000000,"platform":"platform08","order":20,"material":"","type":1,"place":100},{"boxId":"9848526360001_25001016878P0400500-1_0","x":-55.900002,"y":-33.250000,"z":-239.500000,"width":120.000000,"height":64.500000,"length":80.000000,"weight":62.000000,"platform":"platform08","order":21,"material":"","type":1,"place":100},{"boxId":"9849489310001_3880190F446P0400500-1_0","x":-78.150002,"y":36.500000,"z":-313.250000,"width":75.500000,"height":17.000000,"length":59.500000,"weight":16.200001,"platform":"platform08","order":22,"material":"","type":1,"place":100},{"boxId":"9850900780001_4840100L867P0400500_1","x":-2.650000,"y":36.500000,"z":-313.500000,"width":75.500000,"height":17.000000,"length":59.000000,"weight":10.940000,"platform":"platform08","order":23,"material":"","type":1,"place":100},{"boxId":"9850900780001_4840100L867P0400500_0","x":-78.150002,"y":53.500000,"z":-313.500000,"width":75.500000,"height":17.000000,"length":59.000000,"weight":10.940000,"platform":"platform08","order":24,"material":"","type":1,"place":100},{"boxId":"9849489330001_4940190L169P0500600-2_0","x":-2.900000,"y":53.500000,"z":-314.750000,"width":75.000000,"height":17.000000,"length":56.500000,"weight":12.500000,"platform":"platform08","order":25,"material":"","type":1,"place":100},{"boxId":"9849489340001_4940191R060P0400700_0","x":-78.400002,"y":70.500000,"z":-314.750000,"width":75.000000,"height":17.000000,"length":56.500000,"weight":7.285000,"platform":"platform08","order":26,"material":"","type":1,"place":100},{"boxId":"9849489330001_4940190L169P0500600-1_0","x":-3.400000,"y":70.500000,"z":-314.750000,"width":75.000000,"height":17.000000,"length":56.500000,"weight":12.500000,"platform":"platform08","order":27,"material":"","type":1,"place":100},{"boxId":"9849489320001_5860190J249P0400500_0","x":-78.400002,"y":87.500000,"z":-314.750000,"width":75.000000,"height":17.000000,"length":56.500000,"weight":9.480000,"platform":"platform08","order":28,"material":"","type":1,"place":100},{"boxId":"942672401020381","x":-14.400000,"y":113.000000,"z":-448.549988,"width":37.000000,"height":10.000000,"length":29.500000,"weight":1.660000,"platform":"platform08","order":29,"material":"","type":1,"place":100},{"boxId":"9853557300001_7640191X269P0400500_0","x":54.849998,"y":45.250000,"z":-323.250000,"width":39.500000,"height":34.500000,"length":39.500000,"weight":5.100000,"platform":"platform08","order":30,"material":"","type":1,"place":100},{"boxId":"9849489310001_7640193M703P0400500-2_0","x":95.099998,"y":-118.250000,"z":-417.000000,"width":36.000000,"height":23.500000,"length":37.000000,"weight":3.120000,"platform":"platform08","order":31,"material":"","type":1,"place":100},{"boxId":"942672401020382","x":97.349998,"y":-101.500000,"z":-417.500000,"width":29.500000,"height":10.000000,"length":37.000000,"weight":1.640000,"platform":"platform08","order":32,"material":"","type":1,"place":100},{"boxId":"942672401020384","x":97.349998,"y":-91.500000,"z":-417.500000,"width":29.500000,"height":10.000000,"length":37.000000,"weight":1.640000,"platform":"platform08","order":33,"material":"","type":1,"place":100},{"boxId":"942672401020383","x":97.349998,"y":-81.500000,"z":-417.500000,"width":29.500000,"height":10.000000,"length":37.000000,"weight":1.640000,"platform":"platform08","order":34,"material":"","type":1,"place":100},{"boxId":"9847852820001_17001014442P0400500-1_0","x":-20.150000,"y":122.750000,"z":-446.049988,"width":25.500000,"height":9.500000,"length":34.500000,"weight":1.260000,"platform":"platform08","order":35,"material":"","type":1,"place":100},{"boxId":"9849489310001_1700190F596P0400700-3_0","x":95.349998,"y":-71.750000,"z":-418.750000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":1.480000,"platform":"platform08","order":36,"material":"","type":1,"place":100},{"boxId":"9853113680001_3460103W068P0400700_0","x":95.349998,"y":-62.250000,"z":-418.750000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":0.500000,"platform":"platform08","order":37,"material":"","type":1,"place":100},{"boxId":"942672401020385","x":95.349998,"y":-52.750000,"z":-418.750000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":0.480000,"platform":"platform08","order":38,"material":"","type":1,"place":100},{"boxId":"9855518730014_7241J014614-1_0","x":91.599998,"y":-44.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":39,"material":"","type":1,"place":100},{"boxId":"9855518730028_7241J014614-1_0","x":91.599998,"y":-36.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":40,"material":"","type":1,"place":100},{"boxId":"9855518730005_7241J014614-1_0","x":91.599998,"y":-29.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":41,"material":"","type":1,"place":100},{"boxId":"9855518730003_7241J014614-1_0","x":89.099998,"y":-21.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":42,"material":"","type":1,"place":100},{"boxId":"9855518730047_7241J014614-1_0","x":89.099998,"y":-14.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":43,"material":"","type":1,"place":100},{"boxId":"9855518730027_7241J014614-1_0","x":89.099998,"y":-6.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":44,"material":"","type":1,"place":100},{"boxId":"9855518730017_7241J014614-1_0","x":89.099998,"y":0.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":45,"material":"","type":1,"place":100},{"boxId":"9855518730030_7241J014614-1_0","x":89.099998,"y":8.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":46,"material":"","type":1,"place":100},{"boxId":"9855518730012_7241J014614-1_0","x":89.099998,"y":15.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":47,"material":"","type":1,"place":100},{"boxId":"9855518730053_7241J014614-1_0","x":89.099998,"y":23.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":48,"material":"","type":1,"place":100},{"boxId":"9855518730037_7241J014614-1_0","x":89.099998,"y":30.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":49,"material":"","type":1,"place":100},{"boxId":"9855518730033_7241J014614-1_0","x":89.099998,"y":38.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":50,"material":"","type":1,"place":100},{"boxId":"9855518730007_7241J014614-1_0","x":89.099998,"y":45.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":51,"material":"","type":1,"place":100},{"boxId":"9855518730040_7241J014614-1_0","x":89.099998,"y":53.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":52,"material":"","type":1,"place":100},{"boxId":"9855518730035_7241J014614-1_0","x":89.099998,"y":60.750000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":53,"material":"","type":1,"place":100},{"boxId":"9855518730036_7241J014614-1_0","x":-101.400002,"y":125.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":54,"material":"","type":1,"place":100},{"boxId":"9855518730004_7241J014614-1_0","x":-72.400002,"y":125.250000,"z":-421.000000,"width":29.000000,"height":7.500000,"length":30.000000,"weight":0.620000,"platform":"platform08","order":55,"material":"","type":1,"place":100},{"boxId":"9855518730022_7241J014614-1_0","x":-42.900002,"y":125.250000,"z":-414.299988,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":56,"material":"","type":1,"place":100},{"boxId":"9855518730026_7241J014614-1_0","x":-100.900002,"y":125.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":57,"material":"","type":1,"place":100},{"boxId":"9855518730025_7241J014614-1_0","x":-70.900002,"y":125.250000,"z":-385.299988,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":58,"material":"","type":1,"place":100},{"boxId":"9855518730002_7241J014614-1_0","x":92.099998,"y":-126.250000,"z":-384.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":59,"material":"","type":1,"place":100},{"boxId":"9855518730013_7241J014614-1_0","x":92.099998,"y":-118.750000,"z":-384.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":60,"material":"","type":1,"place":100},{"boxId":"9855518730001_7241J014614-1_0","x":92.099998,"y":-111.250000,"z":-384.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":61,"material":"","type":1,"place":100},{"boxId":"9855518730052_7241J014614-1_0","x":92.099998,"y":-103.750000,"z":-384.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":62,"material":"","type":1,"place":100},{"boxId":"9855518730038_7241J014614-1_0","x":92.099998,"y":-96.250000,"z":-384.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":63,"material":"","type":1,"place":100},{"boxId":"9855518730011_7241J014614-1_0","x":92.099998,"y":-88.750000,"z":-384.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":64,"material":"","type":1,"place":100},{"boxId":"9855518730048_7241J014614-1_0","x":92.099998,"y":-81.250000,"z":-384.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":65,"material":"","type":1,"place":100},{"boxId":"9855518730009_7241J014614-1_0","x":92.099998,"y":-73.750000,"z":-384.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":66,"material":"","type":1,"place":100},{"boxId":"9855518730049_7241J014614-1_0","x":92.099998,"y":-66.250000,"z":-387.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":67,"material":"","type":1,"place":100},{"boxId":"9855518730044_7241J014614-1_0","x":92.099998,"y":-58.750000,"z":-387.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":68,"material":"","type":1,"place":100},{"boxId":"9855518730046_7241J014614-1_0","x":92.099998,"y":-51.250000,"z":-387.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":69,"material":"","type":1,"place":100},{"boxId":"9855518730018_7241J014614-1_0","x":92.099998,"y":-43.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":70,"material":"","type":1,"place":100},{"boxId":"9855518730031_7241J014614-1_0","x":92.099998,"y":-36.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":71,"material":"","type":1,"place":100},{"boxId":"9855518730021_7241J014614-1_0","x":92.099998,"y":-28.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":72,"material":"","type":1,"place":100},{"boxId":"9855518730042_7241J014614-1_0","x":89.599998,"y":-21.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":73,"material":"","type":1,"place":100},{"boxId":"9855518730041_7241J014614-1_0","x":89.599998,"y":-13.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":74,"material":"","type":1,"place":100},{"boxId":"9855518730051_7241J014614-1_0","x":89.599998,"y":-6.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":75,"material":"","type":1,"place":100},{"boxId":"9855518730020_7241J014614-1_0","x":89.599998,"y":1.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":76,"material":"","type":1,"place":100},{"boxId":"9855518730019_7241J014614-1_0","x":89.599998,"y":8.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":77,"material":"","type":1,"place":100},{"boxId":"9855518730008_7241J014614-1_0","x":89.599998,"y":16.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":78,"material":"","type":1,"place":100},{"boxId":"9855518730024_7241J014614-1_0","x":89.599998,"y":23.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":79,"material":"","type":1,"place":100},{"boxId":"9855518730023_7241J014614-1_0","x":89.599998,"y":31.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":80,"material":"","type":1,"place":100},{"boxId":"9855518730006_7241J014614-1_0","x":89.599998,"y":38.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":81,"material":"","type":1,"place":100},{"boxId":"9855518730015_7241J014614-1_0","x":89.599998,"y":46.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":82,"material":"","type":1,"place":100},{"boxId":"9855518730016_7241J014614-1_0","x":89.599998,"y":53.750000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":83,"material":"","type":1,"place":100},{"boxId":"9855518730034_7241J014614-1_0","x":89.599998,"y":61.250000,"z":-391.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":84,"material":"","type":1,"place":100},{"boxId":"9855518730043_7241J014614-1_0","x":-25.900000,"y":87.250000,"z":-356.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":85,"material":"","type":1,"place":100},{"boxId":"9855518730054_7241J014614-1_0","x":-25.900000,"y":94.750000,"z":-356.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":86,"material":"","type":1,"place":100},{"boxId":"9855518730029_7241J014614-1_0","x":92.099998,"y":-126.250000,"z":-355.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":87,"material":"","type":1,"place":100},{"boxId":"9855518730050_7241J014614-1_0","x":92.099998,"y":-118.750000,"z":-355.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":88,"material":"","type":1,"place":100},{"boxId":"9855518730045_7241J014614-1_0","x":92.099998,"y":-111.250000,"z":-355.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":89,"material":"","type":1,"place":100},{"boxId":"9855518730032_7241J014614-1_0","x":92.099998,"y":-103.750000,"z":-355.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":90,"material":"","type":1,"place":100},{"boxId":"9855518730010_7241J014614-1_0","x":92.099998,"y":-96.250000,"z":-355.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":91,"material":"","type":1,"place":100},{"boxId":"9855518730039_7241J014614-1_0","x":92.099998,"y":-88.750000,"z":-355.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":92,"material":"","type":1,"place":100},{"boxId":"9855518720005_7241J014637-1_0","x":92.099998,"y":-81.250000,"z":-355.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":93,"material":"","type":1,"place":100},{"boxId":"9855518720004_7241J014637-1_0","x":92.099998,"y":-73.750000,"z":-355.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":94,"material":"","type":1,"place":100},{"boxId":"9855518720014_7241J014637-1_0","x":92.099998,"y":-66.250000,"z":-358.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":95,"material":"","type":1,"place":100},{"boxId":"9855518720001_7241J014637-1_0","x":92.099998,"y":-58.750000,"z":-358.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":96,"material":"","type":1,"place":100},{"boxId":"9855518720006_7241J014637-1_0","x":92.099998,"y":-51.250000,"z":-358.000000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":97,"material":"","type":1,"place":100},{"boxId":"9855518720007_7241J014637-1_0","x":92.099998,"y":-43.750000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":98,"material":"","type":1,"place":100},{"boxId":"9855518720008_7241J014637-1_0","x":92.099998,"y":-36.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":99,"material":"","type":1,"place":100},{"boxId":"9855518720009_7241J014637-1_0","x":92.099998,"y":-28.750000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":100,"material":"","type":1,"place":100},{"boxId":"9855518720013_7241J014637-1_0","x":89.599998,"y":-21.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":101,"material":"","type":1,"place":100},{"boxId":"9855518720015_7241J014637-1_0","x":89.599998,"y":-13.750000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":102,"material":"","type":1,"place":100},{"boxId":"9855518720012_7241J014637-1_0","x":89.599998,"y":-6.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":103,"material":"","type":1,"place":100},{"boxId":"9855518720010_7241J014637-1_0","x":89.599998,"y":1.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":104,"material":"","type":1,"place":100},{"boxId":"9855518720011_7241J014637-1_0","x":89.599998,"y":8.750000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":105,"material":"","type":1,"place":100},{"boxId":"9855518720002_7241J014637-1_0","x":89.599998,"y":16.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":106,"material":"","type":1,"place":100},{"boxId":"9855518720016_7241J014637-1_0","x":89.599998,"y":23.750000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":107,"material":"","type":1,"place":100},{"boxId":"9855518720003_7241J014637-1_0","x":89.599998,"y":31.250000,"z":-362.500000,"width":30.000000,"height":7.500000,"length":29.000000,"weight":0.620000,"platform":"platform08","order":108,"material":"","type":1,"place":100},{"boxId":"9836827700001_7240101K833P0400500_0","x":55.849998,"y":-23.250000,"z":-233.000000,"width":103.500000,"height":213.500000,"length":93.000000,"weight":232.000000,"platform":"platform09","order":109,"material":"","type":1,"place":100},{"boxId":"942672401020480","x":-87.400002,"y":104.750000,"z":-315.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":6.500000,"platform":"platform09","order":110,"material":"","type":1,"place":100},{"boxId":"9836827700002_7240101L075P0400700_0","x":-98.150002,"y":118.500000,"z":-328.750000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.920000,"platform":"platform09","order":111,"material":"","type":1,"place":100},{"boxId":"9836827700003_7240101L030P0400700_0","x":-23.150000,"y":84.000000,"z":-322.750000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.340000,"platform":"platform09","order":112,"material":"","type":1,"place":100},{"boxId":"942672401020212","x":-55.900002,"y":36.750000,"z":-239.500000,"width":120.000000,"height":75.500000,"length":80.000000,"weight":82.000000,"platform":"platform09","order":113,"material":"","type":1,"place":100},{"boxId":"942672401020211","x":-55.900002,"y":-92.250000,"z":-159.500000,"width":120.000000,"height":75.500000,"length":80.000000,"weight":82.000000,"platform":"platform09","order":114,"material":"","type":1,"place":100},{"boxId":"94267240101Z985","x":-55.900002,"y":-16.750000,"z":-159.500000,"width":120.000000,"height":75.500000,"length":80.000000,"weight":46.000000,"platform":"platform09","order":115,"material":"","type":1,"place":100},{"boxId":"9836827700004_7240101L027P0400700_0","x":-21.650000,"y":94.000000,"z":-324.250000,"width":38.500000,"height":10.000000,"length":35.500000,"weight":1.300000,"platform":"platform09","order":116,"material":"","type":1,"place":100},{"boxId":"9843811000001_4580T900892J00_0","x":-39.650002,"y":79.500000,"z":-268.750000,"width":38.500000,"height":10.000000,"length":35.500000,"weight":2.920000,"platform":"platform09","order":117,"material":"","type":1,"place":100},{"boxId":"9843810950001_7100100R899P0400500_0","x":-39.650002,"y":89.500000,"z":-268.750000,"width":38.500000,"height":10.000000,"length":35.500000,"weight":1.900000,"platform":"platform09","order":118,"material":"","type":1,"place":100},{"boxId":"94267240101Z935","x":-55.900002,"y":53.250000,"z":-159.500000,"width":120.000000,"height":64.500000,"length":80.000000,"weight":91.000000,"platform":"platform09","order":119,"material":"","type":1,"place":100},{"boxId":"9843811020001_7100100R899P0400500_0","x":23.350000,"y":88.500000,"z":-268.750000,"width":38.500000,"height":10.000000,"length":35.500000,"weight":1.900000,"platform":"platform09","order":120,"material":"","type":1,"place":100},{"boxId":"9836827700001_00I69207027301130597_0","x":-38.650002,"y":107.750000,"z":-269.750000,"width":40.500000,"height":26.500000,"length":33.500000,"weight":8.250000,"platform":"platform09","order":121,"material":"","type":1,"place":100},{"boxId":"942672401020481","x":-97.400002,"y":119.050003,"z":-295.649994,"width":37.000000,"height":11.100000,"length":27.700001,"weight":2.560000,"platform":"platform09","order":122,"material":"","type":1,"place":100},{"boxId":"9843810950001_spu-REP-INNER-27012696-1","x":30.600000,"y":-118.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":123,"material":"","type":1,"place":100},{"boxId":"9843810950001_spu-REP-INNER-27012696-1-1","x":83.599998,"y":-118.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":124,"material":"","type":1,"place":100},{"boxId":"9843810950001_spu-REP-INNER-27012696-1-1-2","x":30.600000,"y":-94.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":125,"material":"","type":1,"place":100},{"boxId":"9843811020001_spu-REP-INNER-27012696-1","x":83.599998,"y":-94.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":126,"material":"","type":1,"place":100},{"boxId":"9843811020001_spu-REP-INNER-27012696-1-1","x":30.600000,"y":-70.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":127,"material":"","type":1,"place":100},{"boxId":"9843811020001_spu-REP-INNER-27012696-1-1-2","x":83.599998,"y":-70.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform09","order":128,"material":"","type":1,"place":100},{"boxId":"9843811000002_spu-REP-INNER-27012696-1","x":30.600000,"y":-46.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":129,"material":"","type":1,"place":100},{"boxId":"9843811000002_spu-REP-INNER-27012696-1-1","x":83.599998,"y":-46.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":130,"material":"","type":1,"place":100},{"boxId":"9843810960001_spu-REP-INNER-27012696-1","x":30.600000,"y":-22.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":131,"material":"","type":1,"place":100},{"boxId":"9843810960001_spu-REP-INNER-27012696-1-1","x":83.599998,"y":-22.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":132,"material":"","type":1,"place":100},{"boxId":"9843810960001_spu-REP-INNER-27012696-1-1-2","x":30.600000,"y":2.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":133,"material":"","type":1,"place":100},{"boxId":"9847015110001_spu-REP-INNER-27012696-1","x":83.599998,"y":2.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":134,"material":"","type":1,"place":100},{"boxId":"9847015110001_spu-REP-INNER-27012696-1-1","x":30.600000,"y":26.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":135,"material":"","type":1,"place":100},{"boxId":"9847015110001_spu-REP-INNER-27012696-1-1-2","x":83.599998,"y":26.000000,"z":-98.250000,"width":53.000000,"height":24.000000,"length":176.500000,"weight":36.500000,"platform":"platform03","order":136,"material":"","type":1,"place":100},{"boxId":"9843811040001_3640190N865P0400500-2_0","x":62.200001,"y":91.000000,"z":-259.399994,"width":39.200001,"height":15.000000,"length":54.200001,"weight":10.860000,"platform":"platform03","order":137,"material":"","type":1,"place":100},{"boxId":"9843810960001_3640192E838P0400500-3_0","x":23.700001,"y":91.000000,"z":-205.199997,"width":39.200001,"height":15.000000,"length":54.200001,"weight":8.000000,"platform":"platform03","order":138,"material":"","type":1,"place":100},{"boxId":"9843811040001_00I69207027472325615-1_0","x":61.049999,"y":88.500000,"z":-213.050003,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.880000,"platform":"platform03","order":139,"material":"","type":1,"place":100},{"boxId":"9843810960001_7240101R152P0400500_0","x":96.550003,"y":88.500000,"z":-213.050003,"width":35.500000,"height":10.000000,"length":38.500000,"weight":3.020000,"platform":"platform03","order":140,"material":"","type":1,"place":100},{"boxId":"9847015110001_7100100R899P0400500_0","x":-98.150002,"y":90.500000,"z":-180.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.900000,"platform":"platform03","order":141,"material":"","type":1,"place":100},{"boxId":"942672401020333","x":-65.900002,"y":-68.250000,"z":-81.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":155.500000,"platform":"platform04","order":142,"material":"","type":1,"place":100},{"boxId":"942672401020332","x":-65.900002,"y":55.250000,"z":-81.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":143,"material":"","type":1,"place":100},{"boxId":"942672401020331","x":-65.900002,"y":-68.250000,"z":-4.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":144,"material":"","type":1,"place":100},{"boxId":"942672401020330","x":-65.900002,"y":55.250000,"z":-4.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":155.500000,"platform":"platform04","order":145,"material":"","type":1,"place":100},{"boxId":"942672401020329","x":34.099998,"y":-68.250000,"z":28.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":146,"material":"","type":1,"place":100},{"boxId":"942672401020328","x":34.099998,"y":55.250000,"z":28.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":147,"material":"","type":1,"place":100},{"boxId":"942672401020327","x":-65.900002,"y":-68.250000,"z":73.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":157.000000,"platform":"platform04","order":148,"material":"","type":1,"place":100},{"boxId":"942672401020326","x":-65.900002,"y":55.250000,"z":73.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":149,"material":"","type":1,"place":100},{"boxId":"942672401020325","x":34.099998,"y":-68.250000,"z":105.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":150,"material":"","type":1,"place":100},{"boxId":"942672401020324","x":34.099998,"y":55.250000,"z":105.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":151,"material":"","type":1,"place":100},{"boxId":"942672401020323","x":-65.900002,"y":-68.250000,"z":150.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":152,"material":"","type":1,"place":100},{"boxId":"942672401020322","x":-65.900002,"y":55.250000,"z":150.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":153,"material":"","type":1,"place":100},{"boxId":"942672401020321","x":34.099998,"y":-68.250000,"z":182.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":154,"material":"","type":1,"place":100},{"boxId":"942672401020320","x":34.099998,"y":55.250000,"z":182.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":155,"material":"","type":1,"place":100},{"boxId":"942672401020319","x":-65.900002,"y":-68.250000,"z":227.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":156,"material":"","type":1,"place":100},{"boxId":"942672401020318","x":-65.900002,"y":55.250000,"z":227.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":157,"material":"","type":1,"place":100},{"boxId":"942672401020317","x":34.099998,"y":-68.250000,"z":259.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":158,"material":"","type":1,"place":100},{"boxId":"942672401020316","x":34.099998,"y":55.250000,"z":259.500000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":159,"material":"","type":1,"place":100},{"boxId":"942672401020315","x":-65.900002,"y":-68.250000,"z":304.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.500000,"platform":"platform04","order":160,"material":"","type":1,"place":100},{"boxId":"942672401020314","x":-65.900002,"y":55.250000,"z":304.000000,"width":100.000000,"height":123.500000,"length":77.000000,"weight":156.000000,"platform":"platform04","order":161,"material":"","type":1,"place":100},{"boxId":"9843811040002_00J69207027081305253_0","x":41.099998,"y":-108.500000,"z":440.500000,"width":114.000000,"height":43.000000,"length":285.000000,"weight":173.500000,"platform":"platform32","order":162,"material":"","type":1,"place":100},{"boxId":"9843811040002_00J69207027081305262_0","x":10.600000,"y":-73.250000,"z":436.500000,"width":53.000000,"height":27.500000,"length":277.000000,"weight":54.500000,"platform":"platform32","order":163,"material":"","type":1,"place":100}]';
			var jsonstr2 = '{"container_length":1192.000000,"container_width":231.800003,"container_height":260.000000,"container_max_load":23000.000000,"container_type_name":"40HQ"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>